package com.imooc.utils;

import java.util.Random;

/**
 * @author wyc
 * @date 2021/1/14 18:22
 */
public class KeyUtil {


    public static synchronized String generateUniqueKey(){
        Random random = new Random();
        Integer number = random.nextInt(900000) + 100000;
        return System.currentTimeMillis() + String.valueOf(number);
    }
}
